package com.z.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.z.common.base.Results;
import com.z.admin.entity.Role;
import com.z.admin.vo.RoleDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author z
 * @since 2022-02-13
 */
public interface IRoleService extends IService<Role> {

    List<Role> findAll();

    Results<Role> findByPage(Integer page, Integer limit);

    Role findById(String id);

    void deleteById(String id);

    void update(RoleDto user, Integer roleId);

    Results<Role> findPageByMap(Map<String, Object> map, Integer offset, Integer limit);

    Role findRoleByName(String name);
}
